<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ page contentType="text/html; charset=UTF-8" language="java"
	import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/page/base.jsp"%>
<html>
	<head>
		<base href="<%=basePath%>"></base>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<title></title>
		<!-- Libraries -->
		<link type="text/css" href="<%=path%>/manage/css/layout.css"
			rel="stylesheet" />
		<link rel="stylesheet" type="text/css"
			href="<%=path%>/manage/css/jquery-ui-1.8.11.custom.css" />
		<link rel="stylesheet" type="text/css"
			href="<%=path%>/manage/css/Tooltip.css" />
		<script type="text/javascript"
			src="<%=path%>/manage/js/jquery-1.4.4.min.js"></script>

		<script type="text/javascript"
			src="<%=path%>/manage/js/jquery-ui-1.8.11.custom.min.js"></script>
		<%-- 验证js Start --%>
		<script type="text/javascript" src="<%=path%>/manage/js/Tooltip.js"></script>
		<script type="text/javascript"
			src="<%=path%>/manage/js/jquery.validate.min.js"></script>
		<script type="text/javascript"
			src="<%=path%>/manage/js/jquery.validate.methods.min.js"></script>
		<script type="text/javascript"
			src="<%=path%>/manage/js/jquery.validate.defaults.js"></script>
		<script type="text/javascript">
	$(document).ready(function() {
		var parkinginfoForm = $("#registeFrom").validate({
			rules : {
				"enterpriseInfo.intEnterpTradeType" : {
					required : true
				},

				"enterpriseInfo.varEnterpName" : {
					required : true
				},
				"enterpriseInfo.varEnterpLegalPerson" : {
					required : true
				},
				"enterpriseInfo.varEnterpPhonenum" : {
					required : true
				},
				"enterpriseInfo.varEnterpEmail" : {
					email : true
				},
				"enterpriseInfo.varEnterpAddress" : {
					required : true
				}

			},
			messages : {
				"enterpriseInfo.intEnterpTradeType" : {
					required : "请选择所属行业"
				},

				"enterpriseInfo.varEnterpName" : {
					required : "请输入企业名称"
				},
				"enterpriseInfo.varEnterpLegalPerson" : {
					required : "请输入企业法人姓名"
				},
				"enterpriseInfo.varEnterpPhonenum" : {
					required : "请输入联系电话"
				},
				"enterpriseInfo.varEnterpEmail" : {
					required : "请输入联系邮箱",
					email : "联系邮箱格式不对"
				},
				"enterpriseInfo.varEnterpAddress" : {
					required : "请输入联系地址"
				}
			}
		});

	});
</script>
	</head>

	<body>
		<!-- Background wrapper -->
		<div id="bgwrap">
			<!-- Main Content -->
			<div id="main">
				<p>
					当前位置：企业注册
				</p>
				<div class="pad20">
					<form action="<%=path%>/login/registeEnterprise.action"
						method="post" id="registeFrom" enctype="multipart/form-data">
						<div id="manage">
							<p>
								企业注册
							</p>
							<table class="fullwidth" cellpadding="0" cellspacing="0"
								border="0">
								<tr>
									<td>
										所属行业
									</td>
									<td>

										<s:select name="enterpriseInfo.intEnterpTradeType"
											list="#request.typeEnterList" id="intEnterpTradeType"
											listKey="intTypeId" listValue="varTypeName" headerKey=""
											headerValue="—请选择—" />
										<span style="color: red">*</span>
									</td>
								</tr>
								<tr>
									<td>
										企业名称
									</td>
									<td>
										<input type="text" name="enterpriseInfo.varEnterpName"
											id="varEnterpName">
										<span style="color: red">*</span>
									</td>
								</tr>
								<tr>
									<td>
										企业法人
									</td>
									<td>
										<input type="text" name="enterpriseInfo.varEnterpLegalPerson"
											id="varEnterpLegalPerson">
										<span style="color: red">*</span>
									</td>
								</tr>


								<tr>
									<td>
										联系电话
									</td>
									<td>
										<input type="text" name="enterpriseInfo.varEnterpPhonenum"
											id="varEnterpPhonenum">
										<span style="color: red">*</span>
									</td>
								</tr>
								<tr>
									<td>
										电子邮箱
									</td>
									<td>
										<input type="text" name="enterpriseInfo.varEnterpEmail"
											id="varEnterpEmail">
										<span style="color: red">*</span>
									</td>
								</tr>
								<tr>
									<td>
										联系地址
									</td>
									<td>
										<input type="text" name="enterpriseInfo.varEnterpAddress"
											id="varEnterpAddress">
										<span style="color: red">*</span>
									</td>
								</tr>
								<tr>
									<td>
										企业许可证上传
									</td>
									<td>

										<input type="file" name="enterpImgUrl" id="enterpImgUrl">
									</td>
								</tr>
								<tr>
									<td>
									</td>
									<td>
										<input type="submit" value="注册">
									</td>
								</tr>
							</table>
						</div>
					</form>
				</div>
			</div>
		</div>


	</body>
</html>
